#include<iostream>
#include<cstdio>
#include<string>
#include <string.h>
using namespace std;
//string a;
int main()
{
	char a[100]; 
	scanf("%s", a); 
	int l=strlen(a); 
	for(int i=0;i<l;i++)
	{
		if(a[i]>=65&&a[i]<=90){
			a[i]=a[i]+32;
			a[i]=a[i]+3;
			if(a[i]>122){
				a[i]=a[i]-26;
			}
		}else{
			a[i]=a[i]-32;
			a[i]=a[i]+3;
			if(a[i]>90){
				a[i]=a[i]-26;
			}
		}
	}
	for(int i=l-1;i>=0;i--)
	{
		cout<<a[i];
	}
	return 0;	
}


